#include <stdio.h>
#include <stdlib.h>

int main(void)
{
	int number;
	int* arr;
	int i;

	printf("Input array size:");
	scanf("%d", &number);
	arr = (int*)malloc(number * sizeof(int));
	for(i = 0; i < number; i++) {
		printf("Input a number to array:");
		scanf("%d", &arr[i]);
	}

	for(i = number - 1; i >= 0; i--) {
		printf(" %d", arr[i]);
	}
	printf("\n");

	return 0;
}
